package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.wms.domain.entity.PackTaskItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 打包任务VO
 * </p>
 *
 * @author rfwang
 * @since 2021-06-29
 */
@Data
@ApiModel(value="PackTaskVO对象", description="打包任务")
public class PackTaskVO implements Serializable {

    @ApiModelProperty(value = "打包任务单号")
    private String code;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentName;

    @ApiModelProperty(value = "所属机构")
    private String groupCode;

    @ApiModelProperty(value = "单据类型,normal：普通打包，prepackaged预打包")
    private String orderType;

    @ApiModelProperty(value = "作业类型 pack:打包，paste:贴单，pack_paste:打包和贴单")
    private String jobType;

    /**
     * 承运商编码
     */
    @ApiModelProperty(value = "承运商编码")
    private String carrierCode;

    /**
     * 承运商名称
     */
    @ApiModelProperty(value = "承运商名称")
    private String carrierName;

    @ApiModelProperty(value = "订单数量")
    private Integer orderQuantity;

    @ApiModelProperty(value = "商品数量")
    private Integer goodsQuantity;

    @ApiModelProperty(value = "计费方式:days天, hours工时, pieces件")
    private String billingMethod;


    @ApiModelProperty(value = "计费单价")
    private BigDecimal billingPrice;

    @ApiModelProperty(value = "作业人标识")
    private String partyCode;

    @ApiModelProperty(value = "作业人名称")
    private String staffName;

    @ApiModelProperty(value = "完成时间")
    private String gmtFinish;

    @ApiModelProperty(value = "是否生成费用 0-否，1-是")
    private Integer genCosts;

    @ApiModelProperty(value = "状态：waiting待打，completed打包完成")
    private String status;

    @ApiModelProperty(value = "版本号")
    private Integer version;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "预打包单号")
    private String prepackagedCode;

    @ApiModelProperty(value = "打包任务明细集合")
    private List<PackTaskItemVO> packTaskItemVOList;

    @ApiModelProperty(value = "打包任务明细集合")
    private List<DeliveryItemWithDistributionVO> deliveryItemWithDistributionVOList;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "修改人")
    private String modifiedBy;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;

    @ApiModelProperty(value = "创建人名称")
    private String createdName;

    @ApiModelProperty(value = "修改人名称")
    private String modifiedName;

    @ApiModelProperty(value = "修改时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "包裹数量")
    private Integer packageQuantity;

    @ApiModelProperty(value = "已打包包裹总数")
    private Integer packQuantity;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "奖励金额")
    private BigDecimal rewardAmount;

    @ApiModelProperty(value = "惩罚金额")
    private BigDecimal punishAmount;


}

